package wang.hu.bos.service;

import java.util.Date;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import wang.hu.bos.domain.page.PageBean;
import wang.hu.bos.domain.take_delivery.Promotion;

public interface PromotionService {

	void updateStatus(Date date);

	void save(Promotion model);

	Page<Promotion> findPageData(Pageable pageable);

	@Path("/pagedata")
	@GET
	@Produces({ "application/xml", "application/json" })
	PageBean<Promotion> pageData(@QueryParam("page") Integer page,
			@QueryParam("rows") Integer rows);

	@Path("/promotion/{id}")
	@GET
	@Produces({ "application/xml", "application/json" })
	Promotion findById(@PathParam("id") Integer id);

}
